#include <iostream>
#include <math.h>

using namespace std;

int main(void)
{
	double a, b, c;

	double x1, x2;

	cout << "a*x^2 + b*x + c" << endl;
	cout << "a = " << endl;
	cin >> a;
	cout << "b = " << endl;
	cin >> b;
	cout << "c = " << endl;
	cin >> c;

	x1 = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
	x2 = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);

	cout << "x1 = " << x1 << endl;
	cout << "x2 = " << x2 << endl;

	return 0;
}
